package com.bruce.demo2.patterns.demo1.creational.demo02.factoryMethod.demo4;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 测试类
 * @AUTHOR CNBruceLee
 * @DATE 2021/7/10 18:34
 */
public class Test {
    @org.junit.Test
    public void test1() throws Exception {
        CoffeeStore coffeeStore = new CoffeeStore();
        Coffee coffee1 = coffeeStore.orderCoffee("american");
        System.out.println(coffee1.getName());
        System.out.println("============================");
        Coffee coffee2 = coffeeStore.orderCoffee("latter");
        System.out.println(coffee2.getName());
    }
}
